<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<link rel="stylesheet" type="text/css" href="./vant.css">
</head>
<body>
	<div id="app"></div>
	<script type="module" src="/src/main.ts"></script>
	<script type="text/javascript">
	function AutoResponse(w = 375) {
		let html = document.documentElement;
		let hWidth = html.getBoundingClientRect().width;//拿到html的宽度
		let num = 100 / 375;

		// 1rem = 100px
		html.style.fontSize = hWidth * num + "px";
	}
	AutoResponse();
	window.addEventListener("resize", () => AutoResponse());
	</script>
</body>
</html>
